﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DemoData.Providers;
using DemoData.Model;

namespace DemoData
{
    public static class Repository
    {
        public static IProvider<Customer> Customers { get; private set; }
        public static IProvider<Product> Products { get; private set; }
        public static IProvider<Order> Orders { get; private set; }

        static Repository()
        {
            Repository.Customers = new BaseProvider<Customer>();
            Repository.Products = new BaseProvider<Product>();
            Repository.Orders = new BaseProvider<Order>();
        }

        public static void PopulateDemoData()
        {
            GeneratedCustomerData.Populate(Repository.Customers);
            GeneratedProductData.Populate(Repository.Products);
            GeneratedOrderData.Populate(Repository.Orders);
        }
    }
}
